import React, { useState } from 'react'
import { View, Button, Image } from '@tarojs/components'
import Taro, { useDidShow, getCurrentInstance } from '@tarojs/taro'
import Router from '@/utils/router'
import './index.scss'
const MsView = (props) => {
    const { params } = getCurrentInstance().router
    const { type } = params
    const render = {
        img: <View className='MsView_box'>
            <View className='MsView_title_box'>如何创建一个图文</View>
            <View className='MsView_font_box'>第一步：新建图文（管理后台）</View>
            <View className='MsView_font'>1丶登录共赢管家从【营销】选择课程</View>
            <Image src={'https://gygj-wechat.oss-cn-hangzhou.aliyuncs.com/wechatImage/msjj1.jpg'} mode='aspectFit' />
            <View className='MsView_font_box'>第二步：基本信息</View>
            <View className='MsView_font'>1丶填写名称，详情等信息上传</View>
            <Image src={'https://gygj-wechat.oss-cn-hangzhou.aliyuncs.com/wechatImage/msjj2.jpg'} mode='aspectFit' />
            <View className='MsView_font_box'>第二步：商品信息</View>
            <View className='MsView_font'>点击保存即可创建成功</View>
            <Image src={'https://gygj-wechat.oss-cn-hangzhou.aliyuncs.com/wechatImage/msjj3.jpg'} mode='aspectFit' />
        </View>,
        video: <View className='MsView_box'>
            <View className='MsView_title_box'>如何创建一个视频</View>
            <View className='MsView_font_box'>第一步：新建视频（管理后台）</View>
            <View className='MsView_font'>1丶登录共赢管家从【营销】选择视频</View>
            <Image src={'https://gygj-wechat.oss-cn-hangzhou.aliyuncs.com/wechatImage/msjj1.jpg'} mode='aspectFit' />
            <View className='MsView_font_box'>第二步：基本信息</View>
            <View className='MsView_font'>1丶填写名称，详情等信息上传</View>
            <Image src={'https://gygj-wechat.oss-cn-hangzhou.aliyuncs.com/wechatImage/msjj2.jpg'} mode='aspectFit' />
            <View className='MsView_font_box'>第二步：商品信息</View>
            <View className='MsView_font'>点击保存即可创建成功</View>
            <Image src={'https://gygj-wechat.oss-cn-hangzhou.aliyuncs.com/wechatImage/msjj3.jpg'} mode='aspectFit' />
        </View>,
        audio: <View className='MsView_box'>
            <View className='MsView_title_box'>如何创建一个音频</View>
            <View className='MsView_font_box'>第一步：新建音频（管理后台）</View>
            <View className='MsView_font'>1丶登录共赢管家从【营销】选择音频</View>
            <Image src={'https://gygj-wechat.oss-cn-hangzhou.aliyuncs.com/wechatImage/msjj1.jpg'} mode='aspectFit' />
            <View className='MsView_font_box'>第二步：基本信息</View>
            <View className='MsView_font'>1丶填写名称，详情等信息上传</View>
            <Image src={'https://gygj-wechat.oss-cn-hangzhou.aliyuncs.com/wechatImage/msjj2.jpg'} mode='aspectFit' />
            <View className='MsView_font_box'>第二步：商品信息</View>
            <View className='MsView_font'>点击保存即可创建成功</View>
            <Image src={'https://gygj-wechat.oss-cn-hangzhou.aliyuncs.com/wechatImage/msjj3.jpg'} mode='aspectFit' />
        </View>,
    }[type]
    return render
}
export default MsView